package com.yuliang.controller;


import com.yuliang.domain.R;
import com.yuliang.service.LinkService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/link")
@Api(description = "友链相关接口")
public class LinkController {

    @Resource
    private LinkService linkService;

    @GetMapping("/getAllLink")
    public R getAllLink(){
        return linkService.getAllLink();
    }
}
